var personObj = {
    name1:'Fitz',
    name2 : "May",
    name3:'Daizy',
    name4:'Simens',
    name5:'Coulson',
    func1(){
        return{//func1返回一个对象，该对象有两个属性一个方法
            name1:'xiaoLiu',
            name2:'xiaoXu',
            func2(){
                console.log(this.name1);
            }
        }
    },
    func2(){
        //func2也返回一个对象
        var nameList = {name:'Agents of SHIELD'};
        //bind call apply的使用，前面的方法全都不要加小括号()
        nameList.func3 = this.func3.bind(this);
        nameList.func4 = this.func4.bind(this);
        nameList.func5 = this.func5.bind(this);
        return nameList
    },
    func3(){
        console.log(this.name1)
    },
    func4(){
        console.log(this.name2)
     
    },
    func5(){
        console.log(this.name3)
        var a = '牛逼'
        var b = '傻逼'
        this.func6(a,b);
    },
    func6(a,b){
        console.log(this.name4 + a + b)
    }
}
var person1 = personObj.func2();
person1.func3();
console.log(person1)
